<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page session="false"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="/WEB-INF/pages/header/header.jsp" />
<div class="main-content">
	<div class="main-left">
		<div class="left-content">
			<h1><s:property value="#request.blog.title"/></h1>
			<div class="blog-head-div"></div>
			<div class="blog-content-div">
				<s:property escape="0" value="#request.blog.content"/>
			</div>
			<s:iterator value="#request['blog'].comments" id="comment">
				<div class="blog-comment-div">
					<s:property escape="0" value="#comment.content"/>
				</div>
			</s:iterator>			
		<form action="blog/comment.action?id=<s:property value='#request.blog.id'/>" method="post">
			<fieldset>
				<legend><s:text name="guestbook.leavemessage"/></legend>
				<table>
					<tr>
						<td class="book-col-td-left"><s:text name="guestbook.content"/>：</td>
						<td class="book-col-td-right" >
							<textarea class="book-textarea" id="bookContent" name="blogContent" ></textarea>
						</td>
					</tr>
					<tr>
						<td class="book-col-td-left"><s:text name="guestbook.email"/>：</td>
						<td class="book-col-td-right" >
							<input type="email" class="common-text" required="required" placeholder="<s:text name="guestbook.inputUserEmail" />" id="postEmail" name="email"  />&nbsp;
						</td>
					</tr>
					<tr>
						<td class="book-col-td-left"><s:text name="guestbook.userName"/>：</td>
						<td class="book-col-td-right" >
							<input type="text" class="common-text" required="required" placeholder="<s:text name="guestbook.inputUserName" />" id="postName" name="postName"  />
						</td>
					</tr>
					<!-- Vericode is disabled because google app engine could not generate image dynamically
					<tr>
						<td class="book-col-td-left">验证码：</td>
						<td class="book-col-td-right">
							<input type="text" required="required" placeholder="验证码" class="short-text" />
						</td>
					</tr>
					 -->					
					<tr>
						<td class="book-col-td-left">
						</td>
						<td class="book-col-td-right">
							<input type="submit" class="submit-button" value="<s:text name="guestbook.say"/>" />&nbsp;
							<input type="reset" class="submit-button" value="<s:text name="guestbook.reset"/>" />
						</td>
					</tr>					
				</table>
			</fieldset>
		</form>			
		</div>		
	</div>
	<jsp:include page="/WEB-INF/pages/footer/right.jsp"></jsp:include>
</div>
<jsp:include page="/WEB-INF/pages/footer/footer.jsp" />